import request from '@/utils/request'
/**
 * 列表
 * @param {*} data
 */
export function crmLargeScreenSettingIndexAPI(data) {
  return request({
    url: 'crmLargeScreenSetting/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 附件
 * @param {*} data
 */
 export const crmFileSaveUrl = 'adminFile/uploadFileOss'

 export function crmLargeScreenSettingUploadAPI(data, config = {}) {
   var param = new FormData()
   Object.keys(data).forEach(key => {
     param.append(key, data[key])
   })
   return request({
     url: crmFileSaveUrl,
     method: 'post',
     data: param,
     ...config,
     headers: {
       'Content-Type': 'multipart/form-data'
     }
   })
 }


/**
 * 删除
 * @param {*} data
 */
export function crmroiDeleteAPI(data) {
  return request({
    url: 'crmPutinMoney/deleteByIds',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
/**
 * 查看详情
 * @param {*} data
 */
 export function crmroiQueryByIdAPI(data) {
  return request({
    url: `crmPutinMoney/queryById/${data}`,
    method: 'post',
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}
